<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"/>
</head>
<body>
    <header>
        <nav>vue.js开发</nav>
    </header>
    <div id="id-vue">
        <h1>{{messages}}</h1>
    </div>
    var data={
        title:"vue开发",
        messages:"我是谁，我在哪"
    }
    <script type="text/javascript">
        var app=new({
            el:'#id-vue',
            data: data,
            methods:{
                all: function () {
                    return this.title+":"+this.messgaes;
                }
            }
        });
    </script>
</body>
</html>